package com.spukmk3me.video;

public class TextSetting
{
    public TextSetting( int color, int w, int h, boolean truncate )
    {
        this( color, w, h, truncate, false, false, false );
    }
    
    public TextSetting( int color, int w, int h, boolean truncate,
        boolean italic, boolean bold, boolean underline )
    {
        this.color      = color;
        this.w          = w;
        this.h          = h;
        this.truncate   = truncate;
        this.flags =
                (( italic )? FLAG_ITALIC : 0) | (( bold )? FLAG_BOLD : 0) |
                (( underline )? FLAG_UNDERLINE : 0);
    }
    
    public static final int FLAG_ITALIC     = 0x00000001;
    public static final int FLAG_BOLD       = 0x00000002;
    public static final int FLAG_UNDERLINE  = 0x00000004;
    
    public final int        color;
    public final int        flags;
    public final int        w, h;
    public final boolean    truncate;
}
